package com.qf.common.core.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2025-03-21 15:54:28
 */

@Data
@TableName("user")
@SuppressWarnings("serial")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户名
    private String username;
    //密码
    private String password;
    //真实姓名
    private String realName;
    //手机号
    private String phone;
    //性别
    private String gender;
    //邮箱
    private String email;
    //身份证号
    private String idcard;
    //头像
    private String avatar;

    private Integer point;
    //注册时间
    //出生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birth;

    private Date createTime;

    private Date updateTime;



}

